package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.entityVo.AppletRoomVo;
import com.antdesignbackend.backend.mapper.AppletRoomMapper;
import com.antdesignbackend.backend.service.AppletRoomService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppletRoomServiceImpl implements AppletRoomService {

    @Autowired
    AppletRoomMapper appletRoomMapper;

    @Override
    public Integer count(QueryWrapper<AppletRoomVo> queryWrapper) {
        return appletRoomMapper.count(queryWrapper);
    }

    @Override
    public List<AppletRoomVo> getRoomView(QueryWrapper<AppletRoomVo> appletRoomVoQueryWrapper, Page<AppletRoomVo> page) {
        return appletRoomMapper.getRoomView(appletRoomVoQueryWrapper,page);
    }
}
